package com.spdzen.service;

import java.util.List;

import com.spdzen.model.SysResource;
import com.spdzen.model.SysRoleResource;
import com.spdzen.support.SimpleService;
import com.spdzen.support.SimpleTreeNode;

/**
 * 服务类
 */
public interface SysRoleResourceService extends SimpleService<SysRoleResource> {

	void bindResources(Long sysRoleId, List<Long> sysResourceIds) throws Exception;

	List<SimpleTreeNode<SysResource>> selectTree(Long sysRoleId);

	int deleteByRole(Long sysRoleId);

	List<SysRoleResource> selectByRole(Long sysRoleId);

	int deleteByResource(Long sysResourceId);
	
}
